package form

import "hitme/go-api/models"

type (
    IdcardGetListReqForm struct {
        SpecName string `form:"spec_name" json:"spec_name"`
        IsHot    int8   `form:"is_hot" json:"is_hot"`
    }

    IdcardGetListRespForm struct {
        Row []models.Idcard `json:"row"`
    }
)

type (
    IdcardGetCateListReqForm struct {
    }

    IdcardGetCateListReqItem struct {
        CateName string            `json:"cate_name"`
        Datas    []models.Idcard `json:"datas"`
    }

    IdcardGetCateListRespForm struct {
        Row []IdcardGetCateListReqItem `json:"row"`
    }
)

type (
    IdcardGetListByCateReqForm struct {
        CateName string `form:"cate_name" json:"cate_name" binding:"required"`
    }

    IdcardGetListByCateRespForm struct {
        Row []models.Idcard `json:"row"`
    }
)

type (
    IdcardEnvMakeWmReqForm struct {
        File   string `form:"file" json:"file" binding:"required"`
        Id     uint64 `form:"id" json:"id" binding:"required"`
        IsFair string `form:"is_fair" json:"is_fair" binding:"required"`
        Color  string `form:"color" json:"color" binding:"required"`
    }

    IdcardEnvMakeWmRespForm struct {
        ImageUrl       string `json:"image_url"`
        Check          int8   `json:"check"`
        CheckRes       string `json:"check_res"`
        SpecSizeWidth  string `json:"spec_size_width"`
        SpecSizeHeight string `json:"spec_size_height"`
        SpecPxWidth    string `json:"spec_px_width"`
        SpecPxHeight   string `json:"spec_px_height"`
        PicId          uint64 `json:"pic_id"`
        Colors         string `json:"colors"`
    }
)

type (
    IdcardCutChangeClothesReqForm struct {
        Id      uint64 `form:"id" json:"id" binding:"required"`
        PicId   uint64 `form:"pic_id" json:"pic_id" binding:"required"`
        Color   string `form:"color" json:"color" binding:"required"`
        Clothes string `form:"clothe" json:"clothe" binding:"required"`
    }

    IdcardCutChangeClothesRespForm struct {
        ImageUrl       string `json:"image_url"`
        SpecSizeWidth  string `json:"spec_size_width"`
        SpecSizeHeight string `json:"spec_size_height"`
        SpecPxWidth    string `json:"spec_px_width"`
        SpecPxHeight   string `json:"spec_px_height"`
        PicId          uint64 `json:"pic_id"`
        Colors         string `json:"colors"`
    }
)